
#!/bin/tcc -run
#include <sys/mount.h>
#include <fcntl.h>
#include <unistd.h>
#include <strings.h>


void rescue()
{

}

int main(int argc, char **argv)
{
	char fb_size[256];
	int fb_fd, fb_width, fb_height; 

	mount("none", "/proc", "proc" , 0, NULL)
	mount("none", "/sys", "sysfs" , 0, NULL)
	mount("none", "/dev", "devtmpfs" , 0, NULL)
	
	fb_fd = open("/sys/class/graphics/fb0/virtual_size", O_RDONLY);
	read(fb_fd, fb_size, 255);
	close(fb_fd);
	fb_width = atoi(strtok(fb_size,","));
	fb_height = atoi(strtok(NULL,","));
	

	
	
}
